package com.yootk;

import com.yootk.banner.YootkBanner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;

@SpringBootApplication
@ImportResource(locations = {"classpath:META-INF/spring/spring-*.xml"})  // 导入Spring配置文件
public class StartApplication02 {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(
                StartApplication02.class
        );
        //springApplication.setBannerMode(Banner.Mode.OFF);   // 设置Banner模式
        springApplication.setBanner(new YootkBanner());     // 配置自定义的Banner生成器
        springApplication.run(args);    // 运行SpringBoot程序
    }
}
